//
//  Utility.h
//  MoneyIndividual
//
//  Created by Le Anh Tai on 12/26/13.
//  Copyright (c) 2013 Le Anh Tai. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Utility : NSObject

#pragma mark - General methods
+ (NSInteger)getLineHeightOfFont:(UIFont *)font;
+ (id)getObject:(NSArray*)objects atIndex:(NSInteger)index;

+ (CGFloat)estimateTimeWithDis:(CGFloat) dis andVelocity:(CGFloat) vel;
+ (NSInteger)offsetTopForViewController;
+ (void)setImageNormal:(NSString*)imageNormal imageHightLight:(NSString*)imageHightLight forButton:(UIButton*)button;

#pragma mark - Calculate size of string
+ (CGSize)getSizeOfString:(NSString*)string font:(UIFont*)font width:(CGFloat)width;
+ (CGSize)getSizeOfString:(NSString*)string font:(UIFont*)font size:(CGSize)size lineBreakMode:(NSLineBreakMode)lineBreakMode;

@end
